//
// Created by 吴喆 on 2020/3/25.
//

#ifndef SUMMER_DEMOBULLET_H
#define SUMMER_DEMOBULLET_H


#include "../engine/Bullet.h"
#include "automation/BulletStateMachine.h"

class DemoBullet : public Bullet {
public:
    DemoBullet(const Scene *scene, Playable *parent, const glm::vec2 &startPosition);

    void onTouched(GameObject *gameObject) override;

    void render() override;

    void update() override;

protected:
    void initStateMachine() override;

    void initParticleGenerator() override;

private:
    float harm = 1.0f;
};


#endif //SUMMER_DEMOBULLET_H
